// 存储盘库的状态筛选和关键字搜索
import consts from "@/utils/consts";
const state = {
    inventoryState: 0,
    inventoryKeywords: '',
};

const getters = {
    inventoryState: (state) => state.inventoryState || consts.allState,
    inventoryKeywords: (state) => state.inventoryKeywords,
}

const actions = {

}

const mutations = {
    setInventoryState: (state, status) => state.inventoryState = status,
    setInventoryKeywords: (state, keywords) => state.inventoryKeywords = keywords,
}

export default {
    state,
    getters,
    actions,
    mutations
}